REPORT-623: Joining an EncounterDataSetDefinition to a PatientDataSetDefinition leads to a stack overflow