calendar: fix error saving task without job/stage