Does this condition need to be added to lines 351-358 where the Delete NuGet config is? The config won't be created if you aren't setting these credentials afaik.