Prevent generic devices from crashing when an OEHIDEvent can't be created for a given element.
Merge remote-tracking branch 'upstream/master' into BatteryHandling