improvements to stock reporting status map report

http://manage.dimagi.com/default.asp?149773
(added logging so we can check up on it in sentry. seems weird that this would happen)