Handles the case when logging format wants header, but no request exists
Merge pull request #927 from ironcamel/robust-header-logging

Handles the case when logging format wants header, but no request exists