Added a try except to handle unicode in domain lookup. Solves FB:120611

Warns the user of an invalid domain name if unicode is passed into form instead of returning a 500 error.
Solves http://manage.dimagi.com/default.asp?120611
PR implementing this here: https://github.com/dimagi/commcare-hq/pull/3730