Only set the itemStack when item is updated

Added missing brackets.