In release you are taking away the checking by not doing debug mode. Thats the whole point, you should use debug to check for bugs like this and then release mode when you're sure YOUR code is safe.
In the past writing to an undefined offset in an empty array would've written somewhere in memory and caused a crash.
In the past writing to an undefined offset in an empty array would've written somewhere in memory and caused a crash.