fix bug with cases not showing up in case list

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