[Fixes #55179134] User can change a scheduled Job to On Demand without error

- Guard against empty next_run and end_run values when validating that they are not in the past for on demand jobs