Fixed #5223: Bailout in valueFlowForLoop1() for complex conditions

Refactorization: Reuse result instead of calling MathLib::toLongNumber() twice