It's too bad that they resolve the scene with a Deus Ex Machina though. But how else? They put themselves in a rabbithole.
I think a Deus Ex Machina is fine for a mid-point scene, rather than a story climax. And she’s a member of their team.