smartxml: fix - removing source of the merged text if necessary