Add safeguard for when toc is not present
Add safeguard for when toc is not present

For empty documents, the toc property is never added to the markdown
object.

This fixes #435.

stianjensen/wikipendium.no,stianjensen/wikipendium.no,stianjensen/wikipendium.no