where there is an agreement to sell goods on the terms that the price is to be fixed by the valuation of a third party who cannot or does not make the valuation the agreement is avoided but if the goods or any part thereof have been delivered to and appropriated by the buyer he must pay a reasonable price therefor