Replace empty Log4j message with exception string