Added null-check of ParentTree, as this have been null and caused exception.
Merge pull request #444 from gumme/WpfDesignerStabilityBugFixes

Added null-check to avoid exception