Some constancy results for nematic liquid crystals and harmonic maps