Fix for autocomplete delete action removing only the last item

As reported at the bottom of #887. Basically when removing users from a group, the user name would be removed from the user selection box, but the last user in the list is actually deleted upon a save.