VPP-229: fix NPE in JNI array handling