product_gtin: port to v8

Rename badly-named variable: ean13_len -> ean_len
Small code simplification