Fix HTML part detection when encapsulated inside multipart/signed (#1489372)