Merge "Fix NewLocalRef, NewGlobalRef to handle cleared weak globals."