Bug fix: Do not crash if mimetype is not set