Fixed #5492 (Fix small bug in MathLib::isFloat())