Fix xtext crash in rawlog/text events window

Closes #740