Of course there is a temperature sensor in the control unit. The temperature is taken into account regulating the engine.
I am sorry, I don't know how this could work, at least not work very well. For relevant temperature sensing the sensor should be as small as possible keeping its thermal mass to a minimum. This would allow the sensor to respond in a timely manner (thermal time constant) to a given set of conditions. The thermal sensor also needs to be in intimate (close) contact to the quantity being measured.
So if there is a temperature sensor inside the ignition module then what parameter is it actually measuring? The temperature of the ignition module is determined by at least 4 things:
1. The heat generated by the internal electronics in the module.
2. The heat conducted into the module through the mounting bolts and steel coil armature.
3. The heat radiated into the module from the engine / crankcase.
4. The temperature of the ambient air as it is forced across the module by the flywheel fan. Another variable to this is that the airflow changes rather dramatically based on engine RPM.
So no, I don't believe that Stihl is doing this, at least to control/adjust engine operation. Now, do they have a last chance "kill switch" temperature sensor in the module? That is a subject for another discussion. Here again, I suspect not, due to the long thermal time constant (response time) of the ignition module mass. The engine is likely already dead/damaged by the time the module would get up to the trip temperature.