[OE-3987] handled condition where ids passed to notDeletedOrPk are null