Why are you checking for the image this way? If you're using a ClientBundle,
getUrl() might be returning a data url, which would be correct, but fail your test here.
Try printing out via GWT.log() the actual URL used and letting us know what that is.
Sincerely,
Joseph