fix 500 due to a minor change in the function contract of Group.by_domain
Merge pull request #508 from dimagi/hotfix

fix 500 due to a minor change in the function contract of Group.by_domai...