autocompletion robustness (closes #i3799)