fix for scheduled report bug

http://manage.dimagi.com/default.asp?88634
Merge pull request #2091 from dimagi/scheduled_report_fix

fix for scheduled report bug