2476. Upon the death or bankruptcy of the insured or the assignment of his interest in the insurance to a co-insured, the insurance continues in favour of the heir, trustee in bankruptcy or remaining insured, subject to his performing the obligations that were incumbent upon the insured.