[JNI] Fix global reference leak.
[JNI] Fix global reference leak.

Global references were leaking if data could not be sent.

Parrot-Developers/libARNetwork,kradhub/libARNetwork,kradhub/libARNetwork,kradhub/libARNetwork,niavok/libARNetwork,niavok/libARNetwork,Parrot-Developers/libARNetwork,Parrot-Developers/libARNetwork,Parrot-Developers/libARNetwork,niavok/libARNetwork