Get rid of some pointless '== NULL' / '!= 0' conditions in if statements.