Added out-of-bounds handling for hslToRgb function with unit tests