Return if we can’t get proper native handle.

This avoids a ArrayIndexOutOfBoundsException in case we got invalid
native handle. The program will still die, but it will now instead
return

  java.lang.RuntimeException: C extension initialized against invalid ruby
  runtime

as error.
Merge pull request #1090 from Smarre/smarre

Return if we can’t get proper native handle.