Ensure each groupID passed to sendGroupsLeave is changed to a proper GroupID.