Handle some failing DocumentOrderedMap ID lookups across tree removals.
r366066's attempt to better handle failing DocumentOrderedMap lookups
while an element is being removed from a tree with duplicate IDs, didn't
accommodate all cases where the document map might end up being consulted.
Widen the assert and have it scope over node removals; should the unlikely
case happen, recognize that the tree is in a transitory state and allow
the lookup to quietly fail.
TBR=esprehn
BUG=571351
Review URL: https://codereview.chromium.org/1555653002
Cr-Commit-Position: refs/heads/master@{#368321}
6 files changed