Constfold insertelement to undef when index is out-of-bounds