Trigger change events for nested keys when parent is changed to null or non-object