Fix [download_discounts] invalid argument warning.

An invalid argument supplied warning is thrown when there are no
discounts.
Fix empty [download_discounts] invalid argument warning.
Merge pull request #1234 from ChillThemes/master

Fix [download_discounts] invalid argument warning.