Fixed a nil comparison error with getUpgradeShipMods()