Fix TraceKit.collectWindowErrors