Fix failed assertion in 'InstallPlan.processing'.

Triggered by 'linearizeInstallPlan'. Fixes #1619.