[PLAT-6321] Fix consistency errors when active nodes are rewritten

As part of input resolution the existing/reference node might be replaced in the working set but the original value was used to produce the final node.
Reviewed-by: Stephen Colebourne