Added fix for allowing Protractor to run PhantomJS.