Fix TOC when it has no entries
Fix #131 (TOC newtex file name issue)