Get existing checkpoint doc _rev before writing to avoid conflicts

When replicating from CouchDB to IndexedDB I was getting document update conflicts on the _local docs used to store replication checkpoints. Getting the existing doc to ensure we update based on the existing _rev fixes this issue.