Fix and unit tests for the 'resurrected document' case:

Allow 'createDocumentFromRevision' to succeed when the winning
revision has been deleted; in this instance the new revision is rooted
at the current winning revision.