Fixed error when user is assigned no groups.