Fix an issue with null and collapsed groups not being handled correctly by the Sticky Group Headers feature.