Prevent JNI crash on module title retrieval

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>