Better handling of null glyphs and empty groups.