[S] Change in pysim[master]: pySim-shell: check presence of runtime state before accessing it