smartxml: only send change event when node is currently in a document tree