remove all nodes from tree on refresh

Fix for nodes left behind in widget tree cache i.e. on dragging new node onto playground but then dropping it outside.