frustration of purpose doctrine — Legal Definition, Examples & Cases