Fix queue revision error when stopping chat (#4272)