You can just remove this test directly - the DownloadQueue is not used anywhere in XBMC (and equally could be removed itself).