Fix possible issues when CUDA is not found

Return value might have been not initialized.