[#30930] Fatal error with JHelper::setUserGroups

Fix small mistake introduced in e98350c09523de6b4a9fe151efef9a621ba88250.