Fixed a bug in userprofile

If the user didn't belong to any groups, an error was displayed - fixed
this, it now shows "no groups registered"