Incorrect font name generated for non-‘Regular’ variable fonts?

It seems that if the style name of a VF instance is not “Regular,” Glyphs generates an incorrect Font Name:

print(Font.instances[0].fontName)
-> MyFontItalic-Italic

print(Font.instances[0].fontName)
-> MyFont-Regular