Fix a known regression in package filtering that resulted from other refactoring for R4.3. (FELIX-2950)