Fix detection of chrome packaged apps in Browserify environments.

Browserify creates empty stubs for tls and net.