Crashes when object value is NULL

Fixed it so that if an object's value is NULL it is written as an empty string to the XML.