Prevent JNI crash in instrument data retrieval

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