500 -> better error message if location view breaks

http://manage.dimagi.com/default.asp?149400#838049
F841 local variable 'consumption' is assigned to but never used