A British judge has thrown out the terrorism case against Kneecap rapper Mo Chara over a technical error in the way the charge was filed.