Fix crash from `bunyan` CLI with an `Object.keys called on non-object` message

Sending a log message with a non-object value for the `req` property to the `bunyan` CLI causes it to crash with an `Object.keys called on non-object` message. This change fixes that.