Fix NPE from mod inventories in transferTo(). Fixes #896.