Fix warning in the fucntion fitTime

remove the unnecessary NA-null conversion.