This commit fixes the HTTP 500 error when trying to block a user via API by adding a check in Users::BlockService