23. No contract made in contravention of section 19 or 20 may be cancelled and the second paragraph of section 22 does not apply if the contravention results from the opening of a succession or a gift and if the beneficiary renounces the property concerned or disposes of it with dispatch.