Fix a trivial bug in generateNullCheck.