HTML writer:  Don't include empty TOC items for slide shows.

Previously creating a slide with a horizontal rule would result
in an empty list item in the TOC.  This patch fixes that.