tools/thermal: tmon: fix for segfault