I don't remember why, but we load `browser.js` from `zoteroPane.xul` and not `overlay.xul`. Thus sometimes it is loaded into windows that aren't browser windows (in Zotero Standalone or the Zotero tab). Ideally we would load it in `overlay.xul` and this check would not be necessary.