Fixed retrieving search_id when we have an exception from engine