Ignore if only one \*matter command is used

Ignore the \(front|back|main)matter commands for the TOC if only one of
them is used.