fixes #152 by returning false when the ancestor is null
Merge branch 'bug/152'

* bug/152:
  fixes #152 by returning false when the ancestor is null