Handle null hook pointers.
Merge pull request #11 from enyim/fix-removehook

Handle null hook pointers.