This fixes a bug where the layer renderer instead of the layer is passed to the forEachFeatureAtPixel callback.