Fix style

* use comparison with NULL instead of .get() to check RefPtrs
* use NULL instead of 0