Fixing warning when extensions key is empty

Small extra check that does not contain an empty extensions key before trying to iterate it:

```yaml
extensions:
```

Fixes #136