API v3: Query: Fix empty name on starring

When a query only has special characters as a name (which is not user-
visible), normalization previously would remove all of them so the
name could be empty. Using a random name fixes this.
Merge pull request #2014 from opf/fix/menu_items_for_special_char_queries

API v3: Query: Fix empty name on starring