This issue is caused by Group records being marked as deceased. To find all affected records, run the following SQL script:

select * from Constituent
where ID in (select ID from DECEASEDCONSTITUENT where not (( [dbo] . [UFN_CONSTITUENT_ISORGANIZATION] ( [ID] )=( 0 ) AND [dbo] . [UFN_CONSTITUENT_ISGROUP] ( [ID] )=( 0 ))))