Modified \MainMatter cmd to avoid involuntary blank pages after toc.

(cherry picked from commit b3595edc74c9f34755ad37261ed398ba7a5131c7)