Fix Bug 1038392 - Image plugin test urls are no longer reachable

https://bugzilla.mozilla.org/show_bug.cgi?id=1038392
Actually, tiny improvement would be to make this an else if, like `} else if ( target ) {`