pattern: Ensure termination date is set at the end of listing process
Previously it could be set by any call to the set_state_in_scheduler
method.
This was leading to side effects on the save bulk lister while updating the scheduler state when encountering an invalid or not found origin, and thus the listing failed.
Fixes #4712 (closed).