bintree: fix inserting into empty tree