Delete empty subparts

If compiling produces an empty subpart, delete it.