Fix for issues/1595

It makes possible search with 'group_search:false' option and print group's label instead 'undefined'
I would rather move the definition of ``option.search_text`` before the ``unless`` line, to avoid duplicating it.