Use hasattr to decide whether to set attributes.

This protects us from exceptions and from changes in FontForge's API.
As a bonus, sfnt names can still be set in the `props` key, as long
as they don't collide with `fontforge.font` properties.