There are at least three functions that do similar logic, and should probably be consolidated.
GetParameterValue in GltfExportContext.cs
GetParameterValue in IonExportUtils.cs
GetParameterValueAsString in RevitMaterials.cs
Each throws out slightly different defaults which could create edge cases depending on how the code handles the defaults.