Fixed tasks to support getting last backup timestamp even if backup name is incorrectly formatted

This was blocking warehouse backups in prod. I've fixed the issue there by removing misnamed backups, but for posterity, the task should be more resilient.