Failed to fetch jobs for pipeline (for current branch) - project_id in the requested url is 'undefined'

### Checklist

- [x] I'm using the latest version of the extension ([see the latest version in the right column of this page](https://marketplace.visualstudio.com/items?itemName=GitLab.gitlab-workflow))
  - Extension version: v3.41.2 (v3.39.0 also has the same issue)
- [x] I'm using the latest VS Code version ([find the latest version here](https://github.com/microsoft/vscode/releases))
  - VS Code version: 1.65.2
- [x] I'm using a supported version of GitLab ([see README for the supported version](https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/blob/main/README.md#minimum-supported-version))
  - GitLab version: 13.5.4-ee

### Summary

<!-- Summarize the bug encountered concisely -->

### Steps to reproduce

1. Install this extension
2. Setup gitlab.instanceUrl and personal access token
3. Open an VSCode workspace hosted by gitlab 13.5.4-ee
4. Click the gitlab icon in the sidebar, the pipeline result `FORCURRENT BRANCH` does not show fully: it shows the overall status but details are not displayed

### What is the current _bug_ behavior?

Can't see details of pipeline (see picture below)

### What is the expected _correct_ behavior?

Show details of pipeline correctly

### Relevant logs and/or screenshots

Logs from `GitLab: Show extension logs`
```
[error]: {
           "userMessage": "Failed to fetch jobs for pipeline.",
           "errorMessage": "Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
           "stack": [
             "Error: Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
             "\tat ps (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:444)",
             "\tat processTicksAndRejections (internal/process/task_queues.js:93:5)",
             "\tat async pa.fetch (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:1606)",
             "\tat async zv (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7053)",
             "\tat async Function.getState (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8530)",
             "\tat async An.refresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8142)",
             "\tat async An.clearAndSetIntervalAndRefresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7866)"
           ]
         }
[error]: {
           "userMessage": "Failed to fetch jobs for pipeline.",
           "errorMessage": "Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
           "stack": [
             "Error: Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
             "\tat ps (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:444)",
             "\tat processTicksAndRejections (internal/process/task_queues.js:93:5)",
             "\tat async pa.fetch (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:1606)",
             "\tat async zv (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7053)",
             "\tat async Function.getState (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8530)",
             "\tat async An.refresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8142)",
             "\tat async An.clearAndSetIntervalAndRefresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7866)",
             "\tat async Timeout._onTimeout (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7745)"
           ]
         }
[error]: {
           "userMessage": "Failed to fetch jobs for pipeline.",
           "errorMessage": "Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
           "stack": [
             "Error: Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
             "\tat ps (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:444)",
             "\tat processTicksAndRejections (internal/process/task_queues.js:93:5)",
             "\tat async pa.fetch (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:1606)",
             "\tat async zv (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7053)",
             "\tat async Function.getState (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8530)",
             "\tat async An.refresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8142)",
             "\tat async gl.refreshSidebar (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:317:2934)",
             "\tat async c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:317:1540",
             "\tat async r._executeContributedCommand (c:\\Apps\\VS Code\\resources\\app\\out\\vs\\workbench\\services\\extensions\\node\\extensionHostProcess.js:95:31072)"
           ]
         }
[error]: {
           "userMessage": "Failed to fetch jobs for pipeline.",
           "errorMessage": "Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
           "stack": [
             "Error: Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
             "\tat ps (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:444)",
             "\tat processTicksAndRejections (internal/process/task_queues.js:93:5)",
             "\tat async pa.fetch (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:1606)",
             "\tat async zv (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7053)",
             "\tat async Function.getState (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8530)",
             "\tat async An.refresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8142)",
             "\tat async Timeout._onTimeout (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8015)"
           ]
         }
[error]: {
           "userMessage": "Failed to fetch jobs for pipeline.",
           "errorMessage": "Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
           "stack": [
             "Error: Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
             "\tat ps (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:444)",
             "\tat processTicksAndRejections (internal/process/task_queues.js:93:5)",
             "\tat async pa.fetch (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:1606)",
             "\tat async zv (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7053)",
             "\tat async Function.getState (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8530)",
             "\tat async An.refresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8142)",
             "\tat async Timeout._onTimeout (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8015)"
           ]
         }
[error]: {
           "userMessage": "Failed to fetch jobs for pipeline.",
           "errorMessage": "Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
           "stack": [
             "Error: Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
             "\tat ps (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:444)",
             "\tat processTicksAndRejections (internal/process/task_queues.js:93:5)",
             "\tat async pa.fetch (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:1606)",
             "\tat async zv (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7053)",
             "\tat async Function.getState (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8530)",
             "\tat async An.refresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8142)",
             "\tat async Timeout._onTimeout (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8015)"
           ]
         }
[error]: {
           "userMessage": "Failed to fetch jobs for pipeline.",
           "errorMessage": "Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
           "stack": [
             "Error: Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
             "\tat ps (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:444)",
             "\tat processTicksAndRejections (internal/process/task_queues.js:93:5)",
             "\tat async pa.fetch (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:1606)",
             "\tat async zv (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7053)",
             "\tat async Function.getState (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8530)",
             "\tat async An.refresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8142)",
             "\tat async Timeout._onTimeout (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8015)"
           ]
         }
[error]: {
           "userMessage": "Failed to fetch jobs for pipeline.",
           "errorMessage": "Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
           "stack": [
             "Error: Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
             "\tat ps (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:444)",
             "\tat processTicksAndRejections (internal/process/task_queues.js:93:5)",
             "\tat async pa.fetch (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:1606)",
             "\tat async zv (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7053)",
             "\tat async Function.getState (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8530)",
             "\tat async An.refresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8142)",
             "\tat async Timeout._onTimeout (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8015)"
           ]
         }
[error]: {
           "userMessage": "Failed to fetch jobs for pipeline.",
           "errorMessage": "Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
           "stack": [
             "Error: Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
             "\tat ps (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:444)",
             "\tat processTicksAndRejections (internal/process/task_queues.js:93:5)",
             "\tat async pa.fetch (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:1606)",
             "\tat async zv (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7053)",
             "\tat async Function.getState (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8530)",
             "\tat async An.refresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8142)",
             "\tat async Timeout._onTimeout (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8015)"
           ]
         }
[error]: {
           "userMessage": "Failed to fetch jobs for pipeline.",
           "errorMessage": "Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
           "stack": [
             "Error: Fetching jobs for pipeline from https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs failed",
             "\tat ps (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:444)",
             "\tat processTicksAndRejections (internal/process/task_queues.js:93:5)",
             "\tat async pa.fetch (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:265:1606)",
             "\tat async zv (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:7053)",
             "\tat async Function.getState (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8530)",
             "\tat async An.refresh (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8142)",
             "\tat async Timeout._onTimeout (c:\\Apps\\VS Code\\data\\extensions\\gitlab.gitlab-workflow-3.41.2\\out\\extension.js:316:8015)"
           ]
         }
```

(Note: I use a portable VS Code to re-produce this issue without any other extensions installed, but the issue also exists in a normal user setup of VS Code)

### Possible fixes

The problem might be caused by failure when get project id: in the log, you can see `undefined` in the request url, where it should be a project id:

`https://gitlab.ourcompany.com/api/v4/projects/undefined/pipelines/397251/jobs`

I try to replace regex `\{\w+\.project_id\}` with my project id `438` in `C:\Users\username\.vscode\extensions\gitlab.gitlab-workflow-3.41.2`, then it works (see the picture below):

![gitlab_pipeline_error](/uploads/f450aa066c95a580ec26ba1c625c0359/gitlab_pipeline_error.png)

Story points: 1.0