Skip unnecessary js init if there are no sections

Bypass js initialisation if the sectioncollection has only uncollapsible sections. This skip also includes skipping open all / close all links which don't do anything when there are no collapsibles.