Added null check to username logging MDC data