console.error expects its "this" reference to be console

When used in node-webkit, the current usage throws
'TypeError: Illegal invocation'.