LPS-51568 Fix broken regex which cause stack overflow error on PortletImpl constructor