Toc: Pass errors if no atx headers are processed.

Fixes issue #102
I'm not sure, I took that from your original version.