Fix crash in CLI search results when tag list is too long