jni: fix typo (and crash) from recent factorize

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>