fixing type error in custom export

http://manage.dimagi.com/default.asp?83954#485019