Fixed a minor bug with if where it would give a warning.

If the result of the 'if' was expected to be a number, the compiler would think nil was a possible return value from the 'if', and give a warning