harness: fixed 'Unexpected critical/warning: [...] Got data flow before segment event' error