Add breaks to for loops

This just adds breaks to a couple of matching for loops in instance.py.

Fixes: bug #1130898
Change-Id: Iacfa040ba3a400b506e4fbc63c513eb3e67ecb11
Merge "Add breaks to for loops"