Correctly handle resurrected documents

Yeah I can see the source of confusion.