Don't try to decode the old NSData or NSDate values when the property has been set to nil

The same conditions are used in getValueOfProperty:
Merge pull request #73 from martijnwalraven/master

Don't try to decode the old NSData or NSDate values when the property has been set to nil