bintree: fix segfault when disposing empty tree