Fix #1043.  Invalid argument supplied for foreach() bootstrap.inc:1529.