Use console only if it is available.

When using sjcl within a web worker, window as well as window.console is not available. That makes firefox (and perhaps others) stop execution. This makes sure console is available before using it.