Detect if there is a missing DTD.

This makes ExportResultsReaderTest.testExportNonreporting more robust.