Fixes #3: Crash with "cannot read temperature of undefined"