raise 404 on missing domain

http://manage.dimagi.com/default.asp?96478#549003