autocompletion robustness (closes #3799)