Corrected an error when a unit has no available armors or weapons.