MINOR: log: use NULL for the unique_id if there is no stream

Now s->unique_id is used as NULL (not set) if s==NULL.
diff --git a/src/log.c b/src/log.c
index 19b448f..f2a0679 100644
--- a/src/log.c
+++ b/src/log.c
@@ -2504,7 +2504,7 @@
 
 			case LOG_FMT_UNIQUEID: // %ID
 				ret = NULL;
-				src = s->unique_id;
+				src = s ? s->unique_id : NULL;
 				ret = lf_text(tmplog, src, maxsize - (tmplog - dst), tmp);
 				if (ret == NULL)
 					goto out;