[varLib] Fix bug in varLib.build() for CFF2.
[varLib] Fix bug in varLib.build() for CFF2.

The logic should attempt to build a cvar table only if there is a glyf table. This stack dumps when the font is a CFF2 font.

googlefonts/fonttools,fonttools/fonttools