Corrects waitForPendingUploads for timeout