MDL-47434 format_topics: section 0 navigation tweak
MDL-47434 format_topics: section 0 navigation tweak

Section 0 is now only shown in the navigation block if it contains
activities.
If there are no activities then the section is removed.
This mimicks the display on the course page.

dilawar/moodle