[#7752] ticket:670 Fix error when indexing users