[BUGFIX] Ensure trimming of depopulated Section

Fixes: #423
Merge pull request #425 from NamelessCoder/emptysectiontrim

[BUGFIX] Ensure trimming of depopulated Section