cancel event even when there's no entry to open/focus (fix #335)