hotkey actions: toggle_expand, collapse_article: check if element exists
before acting on it (closes #815)