Fixed issue where logs for collections were not getting associated to that of the parent when the parent is purged