This TODO is no longer pending
Prevent errors from blank output

cpdf.run() returns empty output in test mode, so we need to check for
test mode here as well and provide a default pagecount
Insert "error" documents to indicate failures

When a document fails to download, or is broken somehow, replace it with
a blank document that has an explanatory error message on it.