fix crash on s3 images that don't have content-type set