Why is ProductName is sometimes null?

We need to check product name (version) in order to determine if a feature is supported or a bug in the platform was fixed. On some systems/customer this check doesn’t work. In the code below ProductName is sometimes null. Why is that? Could it be related to the license somehow? What to do?

Item server = Configuration.Instance.GetItemsByKind(Kind.Server).FirstOrDefault();
var state = server.Properties.FirstOrDefault(p => p.Key == "ProductName");
if (state.Value == null)
{
	Log.Error("ProductName is null");
}

I just checked if the code that you provided works and it was working fine while I was testing, so I haven’t reproduced the issue.

Is this a Smart Client plug-in? (and/or other environments)?

Is this happening in older versions of the Smart Client? For which version(s) of the Smart Client have you seen this?

Do you have any idea of the product and version of the XProtect VMS?

But you mentioned “sometimes null”, is there any special condition when you see the issue? If so, can you please describe the situation?