Corrected null guard.

Comparing Int value with null always returns false.