Check that the hook post type exists before importing

There were already sanity checks for the class and function post types
and for the taxonomies, but not for the hooks post type.