Fixed empty date bug with discounts. CLoses #966