Use slug instead of sanitzed title of term to determine product type

Props @thenbrent for:
https://github.com/woothemes/woocommerce/commit/b2a868301c622d03702f5828
5cb6d97972511953#commitcomment-2663540