Reindent do_bedtemp and fix broken code path

The if f >= 0 could be have been accessed even though f had not been
assigned (if float(l) failed)