Fixes bug where removing a user from a group sometimes doesn't update ldap

Removing a user from the last group they were a member threw an error and didn't update ldap properly