Test content_id with isset instead of a true/false value.

This broke html email in which one image had Content-ID: <0>, which is a
valid value but evaulates to false in this test.