Set hostid & triggerid to a response of history.get() when they
exists in the request.