Check the pipeline ID of the new root layer.
2b0134b
This isn't related to any known issue, but is just to ensure that the IDs are set correctly within this function.