Null check for getTileEntity