Crash when calling XMLHttpRequest.setRequestHeader() in a worker