The sublessee is subsidiarily liable to the lessor for any rent due from the lessee. However, the sublessee shall not be responsible beyond the amount of rent due from him, in accordance with the terms of the sublease, at the time of the extra-judicial demand by the lessor.
Payments of rent in advance by the sublessee shall be deemed not to have been made, so far as the lessor's claim is concerned, unless said payments were effected in virtue of the custom of the place. (1552a)