(1) If a lessee has sub-leased the object with the consent of the lessor, the sub-lessee assumes the obligations directly to the lessor. In this case the sub-lessee may not set a defense against the lessor by a payment of the rent to the sub-lessor.
(2) Paragraph (1) shall not prejudice the exercise of the lessor's right against the lessee.