The license provisions of this chapter shall not be deemed or construed to require the payment of a license fee to conduct, manage or carry on any business, occupation or activity, or to require the payment of any license fee from an institution or organization which is conducted, managed or carried on wholly for the benefit of charitable purposes, or from which profit is not derived either directly or indirectly by any individual, firm or corporation; nor shall any license be required for the conducting of any entertainment, concert, exhibition or lecture on scientific, historical, literary, religious or moral subjects whenever the receipts of such entertainment, concert, exhibition or lecture are to be appropriated by any church or school, or to any religious or benevolent purpose within the Township; nor shall any license be required for the conducting of any entertainment, dance, concert, exhibition or lecture by any religious, charitable, fraternal, educational, military, state, county or municipal organization or association, whenever the receipts of any such entertainment, dance, concert, exhibition or lecture are to be appropriated for the purposes and objects for which such association or organization were formed, and from which profit is not derived, either directly or indirectly, by any person; provided, however, that nothing in this section shall be deemed to exempt any institution or organization from complying with the provisions of any ordinance of the Township requiring the institution or organization to obtain a permit from the designated and proper officers of the Township to conduct, manage or carry on any profession, trade, calling, business or occupation.