Correctly set 'undefined' value/text to element

If `convertedValue` is not defined, the element should set an undefined value/text and not an empty string, which causes the element to be emptied (in case of `el.text()`)