Only add content-type if content exists