Fix artifact produced by incorrect use of leveldb iterator.