Fixing bug where the compat library will sometimes throw error when trying to get the motionevent.