Added a condition check so that we create an article with out a TOC if we don't find any toc elements.