Pass index to woocommerce_save_product_variation. Closes #3962