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

This reverts commit eac96410bb51580a75ee89406fecaeaf71a6df7b.