Fix crash when attempting to upgrade bsdpan packages