Fixed User.groups method from calling an attribute getter that sometimes does not exist (when the user belongs to no groups).