LPS-46688 Javascript error on pages with type=embedded