Fix ObjectWalk corruption when skipping over empty trees