Proper bounds checking in LocaleValue

Bug: 204078909
Test: manual
Change-Id: Ic5fc30a9e84e46d50bd13b6bb3c630c8eeaa430c
1 file changed