Fix to popularity calculation returns null if product was bought today.

If a product was purchased on the same day as the task is run, `DATEDIFF(NOW(),Order.Paid)` returns 0, resulting in a div-by-zero error.