Fix: TOC helper would raise an exception if it was called with content that doesn’t contain any headings.

That's all :)