docker tests: Handle tasks in `scheduled` state
Looks like we sometimes catch tasks in this state. Wait for them to go further instead of reporting a failure.
Test Plan
Looks like this is the current swh-docker-dev failure in jenkins.
Migrated from D2931 (view on Phabricator)