In your case the judge did the right thing. No sense going forward when the evidence is clear that a criminal defendant is not guilty.
After the judge threw out the case on a technicality, we jurors talked with each other. Every single one of us felt like he had done the crime but would have had to vote “not guilty” because of lack of admissible evidence. It was frustrating.