LPS-38032 If no defaultLanguageId is set and the entity has a groupId, we return the default languageId of the site. If the defaultLanguageId is still null, we return the default locale of the portal.