Put in additional safety check for EnemyUnits since they require a large number of components to function.