It is possible that we get a DeviceChanged event for a device that is not in the hash table yet. E.g. I've seen this when using xrandr to change screen resolution. Prevent a crash in this case. https://bugzilla.gnome.org/review?bug=678439