Fix warnings when no post types exist