Fixed NPE when putting a hammer-like item on the table.