Workaround for cases where FontName in the FontDescriptor differs from BaseFont in the Font (bug 847420)

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=847420.