Fixed a missing session list iteration from debugcmd.c