fix backup object state check in /backup_objects API.