frustration-of-purpose defense — Legal Definition, Examples & Cases