Some confusion in the session type list generation from GNOME/gdm!146, means we could actually overrun the list. This commit fixes that.
mentioned in commit bf9ecc62