[BUGFIX] Fix warning about undefined "search_term" index.