Fix crash when multiple packages are found in dmg.