fix headers only with exchange

When synching with Microsoft Exchange then there is sometimes a line within headers consisting only of a space (" "). Using trim will skip those values and leave the stream in a bad state with data remaining.

With headers only reading, the remaining data was not read from the stream, breaking following emails. Added an empty read for those cases just like with mails having a body.