smartxml: fix - handle creation of an empty text node