Prevent hard crash on bad consumption columns

Fixes http://manage.dimagi.com/default.asp?128637