Fix TOC processing cutting off Markdown content

The `footnotes` Python-Markdown extension appends a HTML div containing
the footnotes to the end of the generated HTML. This commit prevents the
`toc` class from accidentally moving that div to the TOC HTML output
instead of the main HTML output.