Fixed error when user is assigned no groups.
Merge pull request #295 from ServiusHack/user-with-no-groups

Fixed error when user is assigned no groups.