A few small font optimizations

While fixing various font bugs, I've found some unnecessary uses of the `in` operator in fonts.js.
The changes in this PR are obviously micro optimizations, but given that `in` is *much* slower than a comparison with `undefined` a think that changing this makes sense.