LPS-44153 LayoutTypePortletImpl#setLayoutTemplateId should call getLayoutTemplate() on the instance instead of a service to get the oldLayoutTemplate

The current logic cannot handle that situation, when there is a "layout-template-id" set in "typeSettings", but the requested template does not exist.

This way users will be able to change template association for a given layout, even if the current template is missing for any reasons



Signed-off-by: Tibor Lipusz <tibor.lipusz@liferay.com>