fix a bug when content of attachment is None (strange bug with email forward)