Fixed item claiming bug.

There was a bug that would double-claim items, making tasks impossible
when one of the claimed items already existed in the claiming building.