Core/Items: Fixed a crash happening if items moved from bank were merged with items in inventory

Closes #9345