Bug 21032: Fixed bug dealing with log payloads

Was not handling non-string log payloads correctly