Fix for rare ArrayIndexOutOfBoundsException in AndroidMultiTouchHandler

It is unfortunately back. :( This should fix #1095 and #945  It will at least prevent crashes in those weird situations. I can't test on a HTC One, but maybe the reported can.