fix 500 on domain/select with mike's tab changes
Merge pull request #820 from dimagi/domain-select-hotfix

fix 500 on domain/select with mike's tab changes