It would be really helpful to have a comment after the `else` saying we used to not store `doc._rev`, so this is for backwards compatibility.