check if indicator exists before looking at its value to prevent type error
Merge pull request #4400 from dimagi/mvp-type-error

check if indicator exists before looking at its value to prevent type error