Fix crash when placing log pile in pit kiln.

ItemLogs was casting the TileEntity to TileEntityLogPile without first
checking to make sure that it was one.