Fix a number of logic problems in the scheduled editor widget, that were causing empty hours of operation to be displayed.