Always attach AST to the active document
This should fix the issue when we had no code completion after restoring context from disk, if the document wasn't modified beforehand.
REVIEW: 124745