In every InventoryEvent (InventoryClickEvent, InventoryOpenEvent, InventoryCloseEvent etc.) where the inventory's holder is a WanderingTrader, methods like #getHolder() return null.
Tested same behaivor with Villager and it returned the villager's object. So I think the WanderingTrader isn't completly integrated yet.