explicitly check for doc.form.meta in a few places that threw errors
Merge pull request #1066 from dimagi/couch-cleanup

explicitly check for doc.form.meta in a few places that threw errors