[Debugger] Make sure that the row is valid before using it to get the iter