fixing regression in setting the userid for an Encounter