[2.2] Added woocommerce_product_subcategories_hide_empty filter

Use add_filter( ‘woocommerce_product_subcategories_hide_empty’,
‘__return_true’ ); to enable. Fixes #6482