Fix SEGV in JNI NewObjectArray if cannot allocate array

* include/jcgojnia.c (jcgo_JniNewObjectArray): Do not check type of obj
if len is zero; check jArr is non-null before dereferencing it.