Fix #142 text cell shouldn't throw error when closing and when the model attribute is undefined