DownloadManagerImpl: Fix potential NPE