Prevent NPE in DetailedFileDiagnostic