A mistake as to a mere motive, extraneous to the essential qualities of the performance due or of the co-contractor, is not a ground of nullity, unless the parties have expressly made it a decisive element of their consent.
Nevertheless, a mistake as to the reason for a liberality, in the absence of which its author would not have disposed, is a cause of nullity.