Check product global is an object before use
Check product global is an object before use

The function get_current_product_id() utilizes Exchange's product
global to determine the current product being viewed. Account for cases
when the global might be defined, but is not a valid object.

iron-bound-designs/exchange-addon-licensing,iron-bound-designs/exchange-addon-licensing,iron-bound-designs/exchange-addon-licensing