Fix download/view in the case where the content type hasn't been determined yet.
Fixes MED-96.