[python] Add NaN support for lastTemp, handle errors in rrdupdate.py