Fix 'basic_string::_S_construct NULL not valid'