ShellPkg: add array index check for shell delay option