Minor typo in toRGB($color)

This fixes the check whether the argument passed to toRGB() is already an RGB value.