#651 - Handle deleted users

User should left all his groups when deleting account.
#651 - Fix NPE when user in a group is deleted