Fix detectEval() when running in Chrome App environment

Checking for document.securityPolicy.allowsEval won't work in that environment.