Addresses #753 (newly-created objects may not have context, causing errors when these are encountered by TreeNodeView)