Common: fixed return values for two StrUtil::StringToInt functions