Allow RequireJS to work in an environment where `navigator` is not defined

I tried to use RequireJS in [node-webkit](https://github.com/rogerwang/node-webkit) and received errors due to `navigator` not being defined in the browser test.

This fix allows the `isBrowser` check to pass even when the `navigator` object is not present.