hotfix for when Domain._get_by_name returns None