Card #213 fix for removing user from all groups with KEEP_ALL_DATA, more robust error checking