fix for paths that have multiple `z` close-path commands (doesn't affect
included icons, though)