fix crash due to empty time value