fix for jsdom crawler crash

Fixed a problem with crawler crash when jsdom initializes asynchronously causing an uncaught exception.