test for nil in with-logging-context