Fix grep search when no project is loaded