C++: Make sure String::GetValue() and Key::GetValue() don't crash with NULL strings