[clangd] Fix an assertion failure in background index.

Summary:
When indexing a file which contains an uncompilable error, we will
trigger an assertion failure -- the IndexFileIn data is not set, but we
access them in the backgound index.

Reviewers: kadircet

Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, cfe-commits

Differential Revision: https://reviews.llvm.org/D55650

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@349144 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed