Toc: Pass errors if no atx headers are processed.

Fixes issue #102
Merge pull request #103 from fmoralesc/patch-1

Toc: Pass errors if no atx headers are processed.