Fix comparison of hash element existence in _find method

Added two more asserts to cover this code
Merge pull request #384 from Zentyal/ejhernandez/fix_find

Fix comparison of hash element existence in _find method