Fix a crash on Android when unplugging a controller during emulation.

If the action we are getting is a ACTION_CANCEL, it means that the "gesture" is aborted and we shouldn't perform any more actions on it.