[BZ-1151000] - Empty elements should be removed from XML after removing their last child.