pilot for PhantomJS support

handle fatal error on instantiating PhantomJS