Forfeiture of a leasehold estate or a judicial finding or abandonment shall not impair any lien as to proceeds of production, material, equipment, fixtures and appurtenances located thereon and to which said lien has attached prior to forfeiture or abandonment or a judicial finding thereof. Failure of an equitable interest to become legal title or nonfulfillment of a condition subsequent on which a legal interest is contingent does not impair a lien on proceeds of production, material, equipment, fixtures and appurtenances, or an improvement located on the land covered by the equitable interest if the lien attached to the proceeds of production, material, equipment, fixtures and appurtenances or improvement before the failure.
770 ILCS 70/5