Check sale price against active price, optimise woocommerce_get_product_ids_on_sale

Fixes #3563