Correct tag autocompletion guards

The guards were supposed to make sure that tags are only requested
once per edit session, but I got the logic incorrect. Better now.