Bail-out early in the for install loops instead of continuing because for...

Bail-out early in the for install loops instead of continuing because for masks the error in the middle

(cherry picked from commit 25248eb0)
(cherry picked from commit 3fbceba0)
14 jobs for fail-on-failed-install-v9_12-v9_11 in 7 minutes and 3 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Precheck
passed precheck:debian:sid:amd64 #52999
amd64 docker linux

00:00:17

 
  Build
passed build:centos:centos6:amd64 #53000
amd64 docker linux

00:02:16

passed build:centos:centos7:amd64 #53001
amd64 docker linux

00:02:25

passed build:debian:sid:amd64 #53002
amd64 docker linux

00:01:37

passed build:debian:sid:i386 #53003
i386 docker linux

00:02:22

 
  Test
passed install:debian:sid:amd64 #53012
amd64 docker linux

00:02:25

passed systemtest:centos:centos6:amd64 #53008
amd64 docker linux

00:04:05

passed systemtest:centos:centos7:amd64 #53009
amd64 docker linux

00:04:18

passed systemtest:debian:sid:amd64 #53010
amd64 docker linux

00:04:06

passed systemtest:debian:sid:i386 #53011
i386 docker linux

00:04:17

passed unittest:centos:centos6:amd64 #53004
amd64 docker linux

00:01:09

passed unittest:centos:centos7:amd64 #53005
amd64 docker linux

00:01:11

passed unittest:debian:sid:amd64 #53006
amd64 docker linux

00:01:06

passed unittest:debian:sid:i386 #53007
i386 docker linux

00:01:00