Convert a WP_JSON_Response to a WP_Error
Only call the handler if it didn't error