fix a formatting problrem of connect-logger.

the logger prints "undefined" when a specified response header does not exist.