Don't set midline to true if we've reached the end of the input
Don't set midline to true if we've reached the end of the input

Fixes issue #3

eino-makitalo/MailKit,jamie-dainton/MailKit,rajeshwarn/MailKit,mganss/MailKit,matt2003/MailKit,dsbenghe/MailKit,nachocove/MailKit,sstraus/MailKit,FubarDevelopment/MailKit,jstedfast/MailKit