Prevent toHSL from generating NaN.

I had my color picker input field showing me NaN with the color hsl(0, 0%, 100%) so now it will make any NaNs 0 before returning the HSL object.