Fix NPE when no log4j MDC available #37