Fix an infinite loop with tab completion of CLI aliases that reference themselves.