[BZ 1150624] Add additional code to prevent attempts to load DTD.