Fix export of glyph to PDF from scripts

As per [PATCH: Export glyph to PDF from script](http://sourceforge.net/p/fontforge/mailman/message/32025758/) on Fontforge-devel, here's a patch that enables scripts to export glyphs to PDF files.