An exception may occur on creating a new role. Reproduced by
1. Log in as adming
2. Go to administration, manage roles, dropdown->create role
3. Enter temprole for a name
4. Select admin and user as members of
5. Press Create
"An unexpected error has occurred. Please report this problem with details of what you were attempting."