If I was on the jury and a Judge pulled those type of shenanigans, I would find not guilty and would make the statement during the reading of the verdict that the jury can not convict anyone of any crime unless they are allowed a fair trail.
In political persecution cases, there is usually an initial conviction then reversal on appeal.
This case is ripe for appeal.