If, due to factors beyond the control of the parties, an essential event does not occur, and neither party had assumed the risk of the event's non-occurrence, the contract may be discharged according to which doctrine