nil comparison error

Every once in a while when my weather forecast doesn’t work my simple test for temperature (p1 > 79) when that happens pleg produces an error, cannot compare nil to number. Help! I tried a number of different approaches but nothing worked, any ideas?
TIA,
|-<:)