Fixes #1669: CNumberValidator used to add wrong error messages in case non-numeric values being validated.

Fixes #1669: CNumberValidator used to add wrong error messages in case non-numeric values being validated.