Check to make sure there is a toc_token before trying to use it. Fixes #1047
Merge pull request #1048 from mojombo/fix-toc-rdiscount

Check to make sure there is a toc_token before trying to use it.