Where there is no contract, or where the agreement is not in writing, a landlord may maintain an action to recover a reasonable satisfaction for the use and occupation of the lands held and enjoyed by another. If on the trial of such action there appear in evidence any demise or agreement the plaintiff shall not on that account be nonsuited, but may make use thereof as evidence of the amount to be recovered.