In providing financing for home mortgages pursuant to this part, a lending institution shall incur no liability in any part based on any policy or procedure which has been adopted by the city or county unless it is contained in the contract between the lending institution and the city or county, its officers, agents or trustees.