The loophole is that a person cannot be convicted of something that is not a crime.
They will almost certainly move to quash the indictment as Jarrett explains here. Too much depends on the politics of judges these days. Judges are NOT unbiased referees anymore (if they ever were).