Fixed table of contents settings so that it don't print a toc if there is no content.