Added a NULL check
Merge pull request #214 from TheNeikos/fix-avl_find

Added a NULL check to avl_find