Fix call to undefined parent method in WP_JSON_CustomPostType