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.
Merge pull request #4582 from rpeshkov/shared_taxonomy_fix

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