Small shardmaster fix for debug printout

One of the debug printouts had referenced sm.configs[config] which
causes a panic if writeToMemory is false since the map entry is nil.