Fix assertion when deleting the last section
Merge pull request #319 from alexanderedge/master

Fix assertion when deleting the last section.