Test if property was set, instead of testing for non-null value

Allows to set properties to null. Needed when from the programmatic point of view "" != null

Please test and review if it makes sense. I'm not sure if the null value test was not intentional - but for me it was a bug as it reported null-set property as undefined => it won't replace it.