Workaround for PhantomJS confirmation dialog