Experimental: Attempted fix for rare ArrayIndexOutOfBoundsException

This might fix #1095 It will at least prevent crashes in those weird situations.
Merge remote-tracking branch 'origin/master' into patch-3
Switched to NUM_TOUCHES
Fixed argument check
Merge pull request #1097 from Unkn0wn0ne/patch-3

Fix for rare ArrayIndexOutOfBoundsException in AndroidMultiTouchHandler