hammer - Fix a NULL pointer dereference.

- hammer_create_inode() allows its parameter dip to be NULL, so
  before checking nlinks, see if dip is actually not NULL.

Spotted-by: swildner