Internal server error when adding member

When adding a member to an Organization, if the username you type does not exist, the result is an internal server error.