Fix of Falconne's stocks plugin when melting items.

Previously this could cause a crash. See
http://www.bay12forums.com/smf/index.php?topic=133174.msg4896387#msg4896387