BUG: fix crash detected by RSNA2012Quant SelfTest

When nodes are removed from the scene, do it as part of a batch
process rather than removing them as the are discovered.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21648 3bd1e089-480b-0410-8dfb-8563597acbee