Only unref the freetype library when valid
trivial: Fix memory leak when a plugin fails after initial success