Throw NotFoundException if no tree object is left after applying filter