Avoid ProgressEvent constructor for phantomjs.