Fixed crash in log exporter.