Fixed bug in treeview: Don't try to remove the dom element
of a graph that isn't currently shown in the treeview. This
can happen if a loop or a graph is deleted from a parent that is
the active graph in the treeview but isn't open at the time.
Removed obsolete filter from the loop plugin. A register not a
slot proxy is used to deliver the index now.