JNAerator: fix NPE that happens when generating glib (issue #132)