Fixed null value bug in AVL tree