fix bug with the preindexing workflow
Merge pull request #905 from dimagi/preindexer

fix bug with the preindexing workflow