handled null pointer in /search/menu end point