Fix potential NPE when creating item stacks from vitas