Simplify error handling in readTOC (#825)
Small improvement to how we handle unknown or malformed sections when reading the TOC.
Note: this PR originally removed some of the "skip section" handling. That has been restored, since it is important for downgrades.