prevents crash even if sensor for sensorId is not defined