PIM-3063: fix Yaml reader

| Q                    | A
| -------------------- | ---
| Bug fix?             | N
| New feature?         | N
| BC breaks?           | N
| CI currently passes? | Y
| Tests pass?          | Y
| Scenarios pass?      | -
| Checkstyle issues?*  | -
| PMD issues?**        | -
| Changelog updated?   | -
| Fixed tickets        | -
| DB schema updated?   |
| Migration script?    |
| Doc PR               |