(bug 58422) omit TOC with less than 3 sections

Change-Id: If830fafe10df44f68d9948f9e87211b76369849c
Merge "(bug 58422) omit TOC with less than 3 sections"