Don't try to detect a proxy on documents with no docShell/webNav

This would previously have thrown an error. I'm not sure what these
documents would be, but it's a safe bet that they're not loaded in a
normal browser window.