make domain login page 404 not 500 on bad domain (Case:66474)
Merge pull request #654 from dimagi/400-not-500

make domain login page 404 not 500 on bad domain (Case:66474)