Make sure $groups is defined (Bug #12858).