Merge "Remove incorrect checks for ShadowFrame in GetLocalInstance"