Oil giant BP has learned from mistakes made in its first short-lived foray into renewables that leave it better