Fix a comparison with null