#5868 enables solution wide analysis. Once enabled, we seem to be attempting to calculate diagnostics in non-source files: see nodes for exec and csc.dll below

Repro project: TestEFApp.zip
Looking under the debugger, it seems we might be adding invalid documents to the project:
