(bug 45649) Fix exception when trying to configure instance with wrong
group

Bug: 45649
Change-Id: I23b21b9d02db6bc5bf36544873704a95fe0b1e37
Merge "(bug 45649) Fix exception when trying to configure instance with wrong group"