Change how post type archive is determined, so it also works on empty post type archive pages. Fixes #443