fix domain search session bug (make sure site exists before updating)