[PDFHistory] Fix "Warning: Unhandled rejection: [Exception... "The operation is insecure."" when opening local file

Using Firefox to open a __local PDF file__ (e.g. by drag and drop, or using the "Open File" menu entry), the fallback bar is displayed and the console contains the following message:
`"Warning: Unhandled rejection: [Exception... "The operation is insecure."  code: "18" nsresult: "0x80530012 (SecurityError)"  location: "<unknown>"]"`

Apparently, providing the third optional parameter to `window.history.pushState/replaceState` fails when opening a __local PDF file__ in Firefox.

This regressed in PR #3582. Since providing the third parameter isn't necessary in Firefox, the simplest solution seemed to be to add preprocessor tags to work around this this bug.