This prevents a nullptr dereference in `ASTScope::unqualifiedLookup()` after querying for the `SourceFile` containing a give source location. Fixes rdar://137652856 and https://github.com/swiftlang/swift/issues/76944.