LPS-49341 Allow doAsGroupId to work for non-control panel portlets
LPS-49341 Only fetch if the groupId > 0
LPS-49341 revert LPS-47612, this only fixed blogs and doesn't do anything now