fix(engine/history): activityInstanceId for HistoricDetails

fix activity instance if for HistoricDetail (Variable) in case the
variable was set on an inactive scope execution

related to #CAM-73