Fix crash in onGenericMotionEvent on non-Glass