The sale, rental or occupancy of dwellings owned or operated for other than a commercial purpose by a religious organization, association or society, or any nonprofit institution or organization operated, supervised or controlled by or in conjunction with a religious organization, association or society to persons of the same religion. These organizations shall also not be prohibited from giving preference to such persons in the sale,
rental or occupancy of such lodgings unless membership in such religion is restricted on account of race, color or national origin.