[OE-3034] bugfixes related to the merged patients handling