The answering of a question, giving of information or production of a document or other thing to the Judicial Commission or an investigating panel in any of the following circumstances does not constitute a breach of a provision of an Act or any regulations or rules made under an Act prohibiting the disclosure of information of that kind—
(a) making a complaint under section 5 or 6;
(b) making a referral under section 7 or 8;
(c) in accordance with a request by the Judicial Commission under section 27 or 28;
(d) in accordance with a request or requirement by an investigating panel under section 54 or 69;
(e) in accordance with a search warrant under section 84 or a witness summons.