fix issues with mismatch between casing in user_id retrieved from couch and es
Merge pull request #1207 from dimagi/casing

fix issues with mismatch between casing in user_id retrieved from couch ...