Meets #8419: [PDF Export] Internal error when entering wrong YAML

[``* `#8419`  [PDF Export] Internal error when entering wrong YAML``](https://www.openproject.org/work_packages/8419)
There is a space missing between ``let`` and the related block. Please check the other statements too.