No business on which an occupation tax is levied shall be exempt from said registration for said tax on the ground that such business is operated for a charitable purpose, unless said business is registered as a nonprofit organization pursuant to the Internal Revenue Code.