Set time to None if time value is 'NaN'

One of the test reporters we use (and can't change) will occasionally report 'NaN' in the testsuite time.