Fix a potential IndexError in email parser when parsing an empty msg-id.