Added check that product has been requested in WC_Query.product_query.

When requesting taxonomy term archive for your custom post type and that
taxonomy is shared with product post type, post_type query variable gets
rewritten.