Fixed is_on_sale function for products without prices. Closes #3189