A mortgagor entitled for the time being to the possession of any land as to which no notice of the mortgagee's intention to take possession, or to enter into the receipt of the rents and profits thereof, has been given by the mortgagee, may sue for such possession, or for the recovery of such rents or profits, or to prevent or recover damages in respect of any trespass or other wrong relative thereto, in the mortgagor's own name only, unless the cause of action arises upon a lease or other contract made by the mortgagor jointly with any other person.