Fix a null comparison