Use copy of groups array to loop through when doing bulk delete.
Merge pull request #1477 from ORCID/fixBulkDelete

Use copy of groups array to loop through when doing bulk delete.