Emit the correct number of </ul>s in the ToC when jumping more than one heading level back up.