tree: fix predecessor,successor for empty tree

In SplayTree and RBTree predecessor() and successor() methods should
return None if tree is empty.