Avoid img display if not available

This should fix https://github.com/geoadmin/mf-geoadmin3/issues/448

Related to  Issue #40 

Please note that I changed "haslegend" to "hasLegend" in the service layersconfig. I don' t think it is used anywhere.