handle task and task status more carefully to avoid exceptions when some of the time fields are not set (should not happen, but ... )
set task started time when the task is started