fixed NPE when logging exception with null message