[corlib] Fixes our of range index access from a5fc91fc42a9a1edcc5ad9d6c656c9c9223e62a8