Wizards: getting rid of pointless empty line

An imagte with invalid path creates a poinless empty line.
Check first if image does exist.

Change-Id: Icaaafc26c81756a076683eff42ce6c9e72185f0b
Reviewed-by: Robert Loehning <robert.loehning@digia.com>