fix updating default consumption when product doesn't have valid code

http://manage.dimagi.com/default.asp?124149
can i both agree and self merge? :wink: