This is so that these tests:
https://github.com/sjrd/scala-js/blob/undefined-tostring/test/src/test/scala/scala/scalajs/test/javalib/FormatterTest.scala#L199
keep succeeding. They used to catch the TypeError arising from calling `undefined.toString()`, with the `undefined` retrieved from outside the bounds of the array.