Core/Items: Fixed an exploit allowing people to put more gems than number of sockets on items.

Closes #11652