fix for scheduled report bug

http://manage.dimagi.com/default.asp?88634