Cleanup tree when handling object delete from outliner. Prevents handling the same tree item twice when clicking fast.