Added potential crash in DTHTMLWriter, issue #419