createTableOfContentsHeading

Creates the heading for the Table of Contents, depending on:

If the user-set title is empty, no title is used.