change findLayerAsJson to return single instance when there are duplicates. The duplicates are the result of WMS scanner issues.