Fixing the ResourceQueryBuilder WhereRoots method.