Avoid nulll pointer on logging some initial errors.