Fix bug DNN-3716: when the schedule has invalid config and can't initialize the Process, we need also trigger work errored event so that the schedule can remove from inprogress and inqueue list to prevent endless loop.