hotfix for when Domain._get_by_name returns None
Merge pull request #1410 from dimagi/hotfix

hotfix for when Domain._get_by_name returns None