Fix [download_discounts] invalid argument warning.

An invalid argument supplied warning is thrown when there are no
discounts.