Fix crash due to aborted test targets (#1876)

Related to
https://github.com/bazelbuild/continuous-integration/issues/1708
1 file changed