History options menu: fix 'collapse expanded datasets' when no event