ITS#9043 Fix new log msg crashes

Solaris stdio hates NULL pointers
3 jobs for its9043fix2 in 27 minutes and 33 seconds (queued for 21 seconds)
Status Job ID Name Coverage
  Build
passed #1891
build-gnutls-mit

00:27:10

passed #1889
build-no-threads-no-slapd

00:02:24

passed #1890
build-openssl-heimdal

00:27:13