Fix issue with deletePropertyFromObject not deleting property.