Fix regression that prevents downloading the PDF file (PR 4752)

After PR #4752, trying to download the PDF file (in the viewer) fails with the console message:
`TypeError: Argument 2 of Worker.postMessage can't be converted to a sequence.`

/cc @yurydelendik