Restore text if ellipsization is not necessary

This fixes a regression where the text of the element is replaced by 'a' if
ellipsization is not necessary.