Fixed Uncaught TypeError when enableSearch true and searchList not defined.