Bug fixes with inseting chapters and sections when the filter() chain returns no DOM elements.