Revert "Code: Prevents HtmlEditorDocument from crashing."

This reverts commit 6aa3c0f6ab96575940ae1d3673985037bad17ae5.