Fixed crash when deleting last object from child datasource