Fix PDF bug in non-js mode
Merge pull request #76 from ministryofjustice/pdfs

Fix PDF bug in non-js mode