leveldb: compaction: Add missing interator error check
leveldb: compaction: Fix entries that get discarded when source tables can't be opened during compaction

Hopefully fix issue #41.