I created two layers using the same style and data source, but a different id. When you do this the layer is not rendered on the map. I'm not sure why someone would want two of the same layers on purpose, but at least an error should show up.