Revised return logic for _hasInlineHTMLAttachments in smtp.py