msi: Return the string length even if the string is NULL.