Work-around for filesystem:-URL bug

Fixes #4592.

Visit https://robwu.nl/pdfjs/filesystem-worker-bug.htm and follow the
steps to verify that the extension works as intended with this patch.