Fix bugs in IndexedDB wrapper.
Fix bugs in IndexedDB wrapper.

1) Database.readModifyWrite used an undeclared variable |key|. The intended
   variable name was |objectKey|.
2) IndexedDB error event handlers inconsistently resolved corresponding
   promises with errors, instead of rejecting the promises.

google/forklift,google/forklift