Don't blow up in a somewhat unusual case

Was blowing up when the system had a whitelist and there was a
Dependency without a name (probably it had just been created).
Fix test broken by using canonical license names