style fix: use NULL for null pointers
style fix: don't use RefPtr::get()
Merge pull request #50 from Waldteufel/fix-style

Style fixes