A will shall be valid even though it should not contain an institution of an heir, or such institution should not comprise the entire estate, and even though the person so instituted should not accept the inheritance or should be incapacitated to succeed.
In such cases the testamentary dispositions made in accordance with law shall be complied with and the remainder of the estate shall pass to the legal heirs. (764)