DAR-3056: Check if hidden sections are omitted from TOC

For Code review