Also made the follow-up query safe in UpdateSpecificPatient.