tree.find: fix the issue that null key cased 100% cpu useage.