If the owner has failed to perform his part of the contract and by reason of such failure the other party is, without his own default, prevented from completely performing his part thereof, he shall be entitled to a reasonable compensation for as much as he has performed, in proportion to the price stipulated for the whole.
Massachusetts Legal Code