fix null pointer upon closing and reopening the event view (PROBPLUGIN-84)