Forfeiture of a leasehold does not impair a lien on material, machinery, supplies, or an improvement located on the leasehold if:
(1) the lien attached to the property before the leasehold was forfeited;
(2) the property is not permanently attached to the land; and
(3) the lienholder pays the owner of the land the damages caused to the land by removal of the property.