do not remove empty sections
Merge pull request #260 from mimmi20/issue-259

Fixes #259
update from the master branch