leveldb: compaction: Only finish the last table if it is not empty

Hopefully fix issue #40.