That is not the courts or juries fault. They made a decision on the evidence at the time. Guilty.
It sounds as if you're saying that it really is of no consequence if the evidence is flawed and whatever the jury decide, despite being given the wrong information, should be adhered to and if the poor sod in the dock is innocent, tough luck if he's found guilty, it's just the way the cookie crumbles.