Fixing glyphs with invalid flags

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