Checks icon url is valid or not

Assetgraph sometimes does not interpret the svg properly and generates xml file which is not a valid image. In that case fall back to png image