SSP-2973 Add support for search filtering on plan existence

Also changes behavior of INACTIVE search option so that it returns
persons who *only* have INACTIVE plans. Previously it would include
persons who had both INACTIVE and ACTIVE plans.