#1669: Fixed bug when CNumberValidator tried to compare non-number and non-integer values with minimal and maximal values

#1669: Fixed bug when CNumberValidator tried to compare non-number and non-integer values with minimal and maximal values