Don't continue with an invalid iterator

Bug: 112181526
Test: build
Change-Id: Ifa3bfa60d2303a294ee842de6729a0c911b42f88
1 file changed