Fixed inverted test for null pointer
p4#: 21127