Fixed SceneInspector error when deleting node.

This was introduced by the code to remove popup windows when paths become invalid. It seems that it might be a good idea to use WeakMethods in idle callbacks as a general rule