API: fix createGroup for mapper endpoint for cases when a mapped group has been deleted

fixes #1890
Merge pull request #1893 from ether/fix/api/cginef-endpoint

API: fix createGroup for mapper endpoint for in case the group is deleted