Item11353: Don't create TOC entries for HTML comments

This isn't a particularly accurate regex for precisely matching HTML
comments, but it works for simple comment blocks.

Also clean up a duplicate call to takeOutBlocks.  It only should be
needed once.

Added unit test,  TOC tests pass.