fix for NodeJS/jsdom which pass a global that does not contains references to native objects