Fix handling of null property values in #set method