Jasig/uPortal — pull request #337 by vertein (2014-06-11 15:33:38+00:00)
Title: Fixes bug in presenting marketplace screenshots

Bug occurs if portlet provides screenshots (any number) and all the screen shot urls provided do not return the anticipated 200 response code. This would lead to this error:
![image](https://cloud.githubusercontent.com/assets/5521429/3246466/badab706-f17b-11e3-8b50-4dd28986cf47.png)

It would happen because the code did not deal with this edge case well. The provided list was not empty, but the valid list was empty. This led to some initial setup that actually couldn't be done. This PR uses the validUrlCount variable already created. It now deals with that edge case and only shows the header if there is at least one valid url.

## Step by Step with pictures!
### A portlet provides two screen shots that work great:
![image](https://cloud.githubusercontent.com/assets/5521429/3246090/3a306f7c-f178-11e3-8ba0-c9b1945a163a.png)

### Let's go mess up the screenshot url to a non existant url. (This could also mean that the hosting service is down or a url is incorrect):
#### Before:
![image](https://cloud.githubusercontent.com/assets/5521429/3246118/88450ac4-f178-11e3-8dae-5130963a982a.png)

#### After (notice screenshot 1 url):
![image](https://cloud.githubusercontent.com/assets/5521429/3246367/e24044c4-f17a-11e3-896b-196eee37ba43.png)

### Now, the screenshot doesn't show, the prev/next arrows go away and everything looks good:
![image](https://cloud.githubusercontent.com/assets/5521429/3246386/17d349e2-f17b-11e3-990d-161e4105e27e.png)

### Now, with both screenshot urls returning not-200 response codes:
![image](https://cloud.githubusercontent.com/assets/5521429/3246454/99750c24-f17b-11e3-8bb2-e8c366e95d8f.png)

### What it looked like previously:
![image](https://cloud.githubusercontent.com/assets/5521429/3246466/badab706-f17b-11e3-8b50-4dd28986cf47.png)

#### So now, we don't have an exception and the screenshot heading goes away!

### Issues that weren't addressed:
* Caching of said URL's
* Definition of URL validity
* Implementation of determining URL validity