Avoid host NPE and attempt to fix logging.