Avoid unnecessary FindClass("java/lang/String").

Use previously retrieved global reference instead.
Check for NULL after creating the global reference.

Change-Id: I21670d2ef0f63ddb5801dd21e7e56359e5519479
fix merge errors

Change-Id: I56d3262d9bded12688808874ec73fdc6100898d5