Ignoring "Unsafe JavaScript attempt" messages of PhantomJS