Fix mw.translate.getGroup to return group from child groups

The recursion was not happening since the looping was on array
instead of Object

Change-Id: I180e4475388183c03f5db8e7333ce3d8f9768600
Merge "Fix mw.translate.getGroup to return group from child groups"