Avoid crash when KeyActionBinder.stop() called from action handler.

If `KeyActionBinder.stop()` is called from within an action handler, `onGameInputControlChanged` crashes when accessing in index of the now-empty `gameInputDeviceDefinitions`. Adding a `length` check seems to fix things up.