Typically, if someone stores something past the end of an array, they are writing into the program memory that has either executable 'code' or is for another variable.
Both these situations may cause a crash and there is no way for the app that is executing to know that this is about to happen so there is no way for it to produce an error message that has any meaning.
While using the Visual Studio debugger, if this situation happens (and it does, even to the best of us, when your variables for indices are not set right), then it stops and says that there was a crash. It doesn't know what happens, but it can usually show the stack trace.
But, in the final executable, it simply crashes. On Windows or Mac you usually get some message saying it crashed, but no other information. On iOS and Android, no such luck. The app usually just disappears.
EDIT EDIT: I just retested the original code, exactly as entered, and got the proper out of bounds error for the first example. But the second sample didn't crash or anything and responded properly to the pointer click. This is not consistent, in either case, with my earlier test. There appears to be a randomish bit here.
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master