In the case mentioned in the preceding article, if the thing be destroyed by accident, and not owing to any fault of the undertaker, before the same be delivered, and without the owner be [being] in default for not receiving it, the undertaker shall not be entitled to his salaries, unless the destruction be owing to the badness of the materials used in the building.