fix callstack for errors reported via postMessage