Fix checking of window global variable in strict mode
Fix checking of window global variable in strict mode

Previous version of the check failed in strict mode with error
"window is not defined". Strict mode is default in Webpack.

neo4j/neo4j-javascript-driver,neo4j/neo4j-javascript-driver,neo4j/neo4j-javascript-driver,neo4j/neo4j-javascript-driver,neo4j/neo4j-javascript-driver