logging: avoid NPE without logging configuration

This NPE only seems to happen under jrat. Looks like some initialization
issue, but could be the sign of a bigger problem.