Make header parsing issues faster, and make tests pass on Thunderbird

Make this "text.length == 0" like in addUnstructured()