Prevent endGroups being emitted if there is no group set