upsert_run with file_log and remove_absent incorrectly handles studygroup removal

Created by: yytosi

Logic fails because studygroups are gathered from all files present in current batch.