completion: remove unnecessary _get_comp_words_by_ref() invocations