Adds check for existing user in ES before indexing.
Fixes bug for updating user in elasticsearch