Safe accessor so analysisAPI can act as a null object.
Call isDartProject correctly.