Actually, the judge was wrong. His comments actually call into question the current letter of the law. Which is actually why this is news. He made no decision to stop the case, the prosecution dropped the case (not seen enough John Deeds to remember what they call this). In summing up, the judge threw in his completely unnecessary tuppence-worth.