I think courts should be legally obliged to make jurors aware of that fact. Overall, I'm not a huge fan of trial by jury, but the idea that an unjust law (as felt by the general public) can be defeated like that certainly appeals to me.
(I'm not trying to make a point about Snowden's particular case, just speaking in general.)