Fix the Package.search method to only return packages from active branches