Ensure content type for path extension doesn't return null