fix(elasticSearchRepository): return undefined for non existing entities
refactor(syncService): make all APIs expect an id