Fix crash on generating and canceling many concurrent requests while offline