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