Only update the tree on websocket if no error