title: terraform providers causes to TypeError: Cannot read property 'match' of null
body: <p>I've been receiving the error
  <code>##[error]TypeError: Cannot read property 'match' of null</code>
  when running terraform providers as part of a pipeline in Azure Devops. An oddity is this issue occurs only for my apply step. A previous step which also runs providers returns</p>
  <pre><code>terraform.exe providers
   .
   ├── provider.azurerm ~&gt; 1.33.0
   ├── module.acr
   │   └── provider.azurerm ~&gt; 1.33.0
   ├── module.aks
   │   └── provider.azurerm ~&gt; 1.33.0
   ├── module.rg
   │   └── provider.azurerm ~&gt; 1.33.0
   ├── module.sa
   │   └── provider.azurerm ~&gt; 1.33.0
   └── module.spn
       ├── provider.azuread
       ├── provider.azurerm ~&gt; 1.33.0
       └── provider.random
  </code></pre>
  <h3>EDIT:</h3>
  <p>Seems like this was an issue with the path referenced in the Terraform step. Changing it to a valid path has fixed the issue.</p>