[PATCH 4.16 117/272] tools/thermal: tmon: fix for segfault