fix bug:if red-black tree has no node, travelling it will cause SEGV