Add condition to not empty search filed when clicking Ctrl+f (issue6334)