ensure time_of_last_run does not get lost