Fix potential CCE in setTypeId. Fixes BUKKIT-3428

Suppose block "x" has type 54 (chest). Calling "x.setTypeId(68)" (wall_sign) would result in a CCE related to the fact that the block id number is changed before the old TileEntity is removed.