Fixed stats sales report not working when no payment module is activated or the payments array contains a empty value