newui: Fix error when there are no groups

Fixes olgabrani/synnefo#39