Fix bug in get_expired_backups().