Fix bug with missing initialization of member in init_diagnostics.