Bail out of fallback FFI invokedynamic generation by throwing an exception instead of relying on checking for null result.