destroy text nodes if empty