Fix ErrorDocumentationGenerator build failure

- Improves error handling, such that exceptions are visibile in the console output of the Maven build
- Fix the actual build failure, by making sure that parent directories of the files we want to write, actually exist when we need them.