check that couch field is not null

used in http://manage.dimagi.com/default.asp?113538