Prevent an array index exception if server does not have an image.

Change-Id: I63d3a92cea4da042942540b0800b5c4e825983c5
Fixes: bug #1202784