Where a contract provides an exclusive method by which its consideration is to be ascertained, which method is on its face impossible of execution, the entire contract is void; but this section shall not apply to the cases provided for in sections 1729 and 1730 of this code.