LPS-45545 Avoid error caused by missing locale from dynamic content element after upgrade