Fixes SqlDatabase#readPartialGrouped including invisible items.