Fixed WP_Error when finding categories.