Fix getHttpResponseCode equality mismatch sans curl

Use a loose comparison for Image::getHttpResponseCode as it may return either an integer or a string, depending on the presence of libcurl.