Fixed a bug in get_last_backup_dates API.