If this color's hue is NaN (meaning the hue is undefined), return whenNaN. Otherwise, return the hue unchanged.