Revert "handle TypeError"
Revert "handle TypeError"

This reverts commit 78e28d8146c3e8e52601bb2f79b930a20b01f5e6.

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq