log: add NonEmptyString() helper

NonEmptyString(s0, s1) <- s0 ? s0 : s1

Signed-off-by: Alejandro Mery <amery@geeks.cl>