Fix a crash in the log viewer on plugin activation.