Better handling of HTML comments

Changes should create files that LyX can open successfully. Of course
they may not create output unless the HTML comment is valid LaTeX code.