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