check that couch field is not null
Merge pull request #3463 from dimagi/fix-management-cmd

check that couch field is not null