#16328: Fix nil[] error