fixed issue where task scheduler woul hang up if duration of a task was
unspecified

It just skips that task for now.