[test.common] prevent check_eoc_study_for_success() from segfaulting