API: fix createGroup for mapper endpoint for cases when a mapped group...

...has been deleted

fixes #1890

@tobiaskluge pls test