do a best effort on appearance-only groups

i.e. groups that don't correspond to the xml data being grouped
Merge pull request #3561 from dimagi/group-without-hierarchy

do a best effort on appearance-only groups