Gross income does not include income (other than rent) derived by a lessor of real property on the termination of a lease, representing the value of such property attributable to buildings erected or other improvements made by the lessee.