Fix a bug with user profile when user is not member of a group.