Core/Items: Fixed an exploit allowing people to put more gems than numbe...

...r of sockets on items.

Closes #11652