Fix detection of pending jobs
It allows showing a message like `The dataset is being processed. Retry later.` or `The split is being processed. Retry later.`
Fix detection of pending jobs: It allows showing a message like `The dataset is being processed. Retry later.` or `The split is being processed. Retry later.`