handle missing app_id in matches_exact
handle closed db connections
fix custom filtering in reindexer
Merge pull request #3036 from dimagi/formdata-fix

FormData fixes