Don't redefine console if it already exists like in Chrome worker.
fixed console detection so it does not throw
tested in Chrome and Firefox
Merge pull request #2136 from rjanicek/worker-console

Don't redefine console if it already exists like in Chrome worker.