Fixed crash when reading a viewer configuration file where the EventVisitor was being re-assigned but left a dangling pointer