In SaaS mode, deleting a pending user invited by e-mail shows a 500 error

On the Manage -> Members page, a user can be invited by e-mail. If the user is not someone who has an account on gitlab.com, they will be marked as a pending invite. When the invite is deleted, a 500 error will be thrown:

2024-08-21_16-43-13

We should fix this so that the error is not thrown.