Added null-check of ParentTree, as this have been null and caused exception.
Merge remote-tracking branch 'remotes/origin/WpfDesignerStabilityBugFixes'