- Bugfix for when weight is not returned by Google

- making gxapi_get_variant protected