Fix NPE caused by the login of someone who isn't a member of any groups.