Fixed a NullPointerException caused by non-existant SensorHandler instance