LPS-37530 Fix NullPointerException
LPS-38440 Use the proper groupId when getting the site locales