Fix the crash in completion entry by fixing the unknown token check

Fixes #1069
Merge pull request #1090 from Microsoft/completionAfterAt

Fix the crash in completion entry by fixing the unknown token check