added ability to handle object properties which have null values but also have nested object properties