Handle null hook pointers.