This fix detect the null case in the boxedValue setter and throws an exception with clear error message rather than a the prior behaviour of throwing a general NullReferenceException.
The property types "ManagedReference", "ObjectReference" and "ExposedReference" can still be set to null because they are reference types.