Fix loading of fonts that are not referenced by an object identifier

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=946506.

*PS. I don't know if this is the best way to fix the issue, but it does work.*