fix NPE when downloader encounters unknown content type