FIxed null pointer in DownloadIndexThread