Introduced a flag that turns off disabling of TOC for empty index.