Bugfix 10950

Fixes bug 10950 so that references to color return errors if more than three integers are specified and if a non-numeric value is specified for one of the arguments.