Remove redundant NULL checks.

It's safe to pass NULLs to SvREFCNT_dec.
Collapse "if(a){b}else{b}" to "b"