linearizeInstallPackage: don't trigger an assertion in InstallPlan.

Fixes #1619.