fix 500 error when domain does not exist

happens if POST contains a faked basedomain (not from our dropdown list)