When prices crashed, SNP leapt on the renewables bandwagon - until they soared again, offering a boost to the party's In