Right around this time, Javik also has his "shard" scene about whether he should remember dead friends. Like they're assuming Shep is going through the same things. Like it works if Miranda just died... or even Jack in the next mission, if you abandoned Grissom.
Well to be fair. You'd have to do a extremely specific playthrough to avoid seeing any of Shepards friends/allies die during ME3 until that point.
You'll have to avoid Mordins death first either by him already being dead in ME2 or by Wrex being dead, Maleons data being destryoed and choosing the right dialogue options.
Then you'll have to avoid:
Grunt's possible death,
Wrex's possible death if you sabotage the cure with him in charge,
Thane dies for certain if he still lives,
Samaras possible death if you're a jerk,
Kellies possible death during the Cerberus coup,
Tali could die
Legion dies for sure if he is stil alive
And Mirandas possible death.
So in short. If you don't metagame to the very maximum you'll never see a ME3 playthrough where none of Shepards friends/crew die before that scene. And even then they had to die in the suicide mission first, which wasn't that long ago in-game.