Fix NPE in JNI while handling int arrays, VPP-559