Now ensuring that TaskRecord::expire_hide_until is not interrupted even if some task records are invalid.
Fixes https://squish.ish.com.au/tasks/18215