Fixes U4-2592 Cannot delete a node when the node has just a closing bracket in the name.
Fixes U4-2218 Document Type copy looses property tab assignment