A tenant in possession of real property under a lawful lease may not deny the landlord’s title in an action brought by the landlord to recover possession of the property. This prohibition does not apply to a tenant who, prior to entering into the lease, possessed the property under a claim of title that was adverse or hostile to that of the landlord.