Logger: Don't debug-log if logger is nil.
Logger: Don't debug-log if logger is nil.

This is to fix https://github.com/google/cloudprober/issues/441.

PiperOrigin-RevId: 325283544

google/cloudprober,google/cloudprober,cloudprober/cloudprober,cloudprober/cloudprober,cloudprober/cloudprober