Fix bug when deleting PatternProperty model from editor.