The `result.checkstyle.file[0]` leads to error `Uncaught TypeError: Cannot read property '0' of undefined` with clean file (because of no `<file>` element in the XML).