Avoided needless copy inside `foreach` loop.
Avoided needless copy inside `foreach` loop.

Review: https://reviews.apache.org/r/53269/

gsantovena/mesos,Gilbert88/mesos,yuquanshan/customizedMesos,abudnik/mesos,craimbert/mesos,Gilbert88/mesos,yuquanshan/customizedMesos,dforsyth/mesos,zmalik/mesos,Gilbert88/mesos,neilconway/mesos,verizonlabs/mesos,zmalik/mesos,chhsia0/mesos,Aman-Jain-14/customizedMesos,Aman-Jain-14/customizedMesos,yuquanshan/customizedMesos,gsantovena/mesos,neilconway/mesos,chhsia0/mesos,kaysoky/mesos,chhsia0/mesos,craimbert/mesos,gsantovena/mesos,zmalik/mesos,craimbert/mesos,reneploetz/mesos,andschwa/mesos,andschwa/mesos,gsantovena/mesos,craimbert/mesos,neilconway/mesos,asamerh4/mesos,jpeach/mesos,abudnik/mesos,chhsia0/mesos,reneploetz/mesos,zmalik/mesos,gsantovena/mesos,jpeach/mesos,dforsyth/mesos,Gilbert88/mesos,jpeach/mesos,verizonlabs/mesos,andschwa/mesos,asamerh4/mesos,kaysoky/mesos,jpeach/mesos,andschwa/mesos,Aman-Jain-14/customizedMesos,reneploetz/mesos,abudnik/mesos,dforsyth/mesos,kaysoky/mesos,abudnik/mesos,dforsyth/mesos,reneploetz/mesos,Aman-Jain-14/customizedMesos,asamerh4/mesos,yuquanshan/customizedMesos,abudnik/mesos,zmalik/mesos,asamerh4/mesos,asamerh4/mesos,verizonlabs/mesos,zmalik/mesos,craimbert/mesos,craimbert/mesos,gsantovena/mesos,andschwa/mesos,verizonlabs/mesos,reneploetz/mesos,yuquanshan/customizedMesos,yuquanshan/customizedMesos,chhsia0/mesos,zmalik/mesos,andschwa/mesos,neilconway/mesos,dforsyth/mesos,Gilbert88/mesos,reneploetz/mesos,kaysoky/mesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,andschwa/mesos,jpeach/mesos,Aman-Jain-14/customizedMesos,neilconway/mesos,yuquanshan/customizedMesos,verizonlabs/mesos,verizonlabs/mesos,gsantovena/mesos,kaysoky/mesos,Gilbert88/mesos,reneploetz/mesos,abudnik/mesos,jpeach/mesos,chhsia0/mesos,dforsyth/mesos,craimbert/mesos,dforsyth/mesos,verizonlabs/mesos,abudnik/mesos,kaysoky/mesos,neilconway/mesos,neilconway/mesos,asamerh4/mesos,Aman-Jain-14/customizedMesos,asamerh4/mesos,jpeach/mesos,kaysoky/mesos,chhsia0/mesos