LPS-44460

Fix double-deploy for non-Liferay portlets containing Liferay hook or Liferay layout template