Correctly handle resurrected documents