JENKINS-23708: Fix NullPointerException when the transient logger is not populated during de-serialization