Fixed a minor crash in decoding emails