Avoid NPE when DocumentHelper passes DTD information to the transformer. This fixes bug #36419. Thanks to Felix Roethenbacher.
Changed paths: