Partially reverted an incorrect change in the JSON-API plugin check