raster prerendering (parity)

Is there a reason you moved this before the `layer_it != vector_data.layers.end()` on the next line? It could potentially be dereferencing an end iterator, which isn't safe.