Fix issue #5524

Fallback to variant.id if sku is not provided