When editing a custom filter, select the shortest preset duration that still covers the remaining time of that filter. Fixes #9506