I have been looking into this because it indeed would be an improvement to the module if no empty block:
<div class="js-toc-block"></div>
would be rendered.
The only way to fix this, in my opinion, is to do a DOM check on the contentSelector if it has any headingSelectors and if not don't even bother rendering the div.