Fixup error handling in LevelDB WriteBatch implementation.