Provided that no Minister, Magistrate, Sheriff, Clerk or other officer shall be liable to pay the aforesaid fine of thirty shillings for not complying with the direction of this act, unless it appears that he knew or had been informed thereof at the time of such refusal or neglect.