LPS-31315 Fix for LayoutSetPrototypeLayouts

Hi Brian,

I was asked to send this pull request directly to you since Hugo is out for the day.