SSP-2089 defensive code checking for null or empty personId sets
SSP-2091 personId now set on id set