Merge "Fix ArrayIndexOOB crash with invalid sim slot"