Catch NullReferenceException when ordering PrimaryWeaponPriorityTargets, DronePriorityTargets, etc (fyi, this is likely caused by the Entity.Distance sorting that may not have correct values for targets off grid / dead or similar)