fix bug with case management being disabled
Merge pull request #1130 from dimagi/cm-error

fix bug with case management being disabled