Fixed a bug caused by NuGet 2.8 outputting package names multiple times.
Ensure we don't stop prematurely if there's dependencies.