Guess MIME type only when one has not been set already