Fix parsing of attachments

If the body is declared with inline disposition and no filename, the parser engine would create an incorrect attachments list.