28. A contract in contravention of section 24 or 25 is not subject to cancellation and the second paragraph of section 27 does not apply if the contravention results from the opening of a succession or from a gift and if the beneficiary renounces the property concerned or disposes of it with dispatch.