fix for #915.  Fix segv when we send NULL to snprintf.