Fixed #5571 (Clean up MathLib::isInt())