The JavaScript DefaultPrinter ConsoleView tries to create a pre-element. This fails if your JavaScript gets executed within a WebWorker.
The ConsoleView should check if Browser.document is null. If it's null it should use some postMessage mechanism to push the log message to the main Browser context. Similar to the mechanism used by the flash target.