Add check if image.status is active

Change-Id: If963d06a0cd33adb24c465812e84253087546b43
Closes-bug: #1326585
Merge "Add check if image.status is active" into stable/5.0