LPS-43073 Set correct groupIds in order to get tagIds

Test passed (https://github.com/mdelapenya/liferay-portal/pull/177)