itermstats: fix NameError on missing deps