fix segmentation fault when writing NAXSI_EXLOG