
Previous code would access the array element before checking that the index was within bounds, and therefore cause a TypeError. It wasn't noticed earlier because at least one visible children is in each panel box in all session modes. https://bugzilla.gnome.org/show_bug.cgi?id=619955