Fix exception when switching to invalid NuGet package source url.