. . . "Provided that, notwithstanding anything in paragraph (b) or paragraph (c) of this subsection, effect shall, as nearly as may be continue to be given to the provisions of any such agreement as is therein referred to which relate to customs transit and communications, posts and telegraph, or other like matters, until the provisions in question are denounced by the Ruler of the Indian State or person" . .