Fix issue #225.

Remove unnecessary null pointer checks.
I'm pretty sure I got all of them.