Fix broken behavior when removing all auxiliary groups from a user

Fix broken behavior when removing all auxiliary groups from a user (e.g. 'groups=' in the user module). See #5933 for a tad more detail.