log undefined and null as empty string (not boolean)

`null` and `undefined` blow up on `toString()`, so let's make them empty quoted strings.