Update your typescript definitions to make the field String|undefined|null and use operators like ?.. It’s the only way to stay sane as a frontend developer.
If you’re using Typescript yet, may God bless your soul (and you can still use all the nice nullability operators on most cases).