Fix infinite loop when size of downloadResults_ exceeds maxDownloadResult_