Fix crash in crashlogger