Nothing contained in this code is intended to be nor shall be construed to create or form the basis for any liability on the part of any city or county or its officers, employees or agents for any injury or damage resulting from the failure of a building to conform to the provisions of this code.