Fix special case with empty text node