Fixed tag inadvertently being deleted

Tag would get deleted when user was trying to change it's contents after
selecting the tag through the structure tree.