[#1594] Fix breakage in package groups page

The group.type field, when undefined and merged with a unicode string returns
a unicode, which causes a traceback thanks to `url_for` in pylons not
accepting unicode. Fixes #1594.