merge_bst: add additional is_balanced check