fix #3276: NPE because of a null log types