Skip the Math.sqrt for clamped values in convertToRgb

No need to compute the square root of clamped values.
Only the values in the range ]0,1[ need to be processed.
Merge pull request #4345 from p01/patch-1

Skip the Math.sqrt for clamped values in convertToRgb