Fix unhandled exception
Fix unhandled exception

Since the system is asynchroneous, the editor might have been closed before _exec_search got executed, leading to an AttributeError

zwadar/pyqode.core,pyQode/pyqode.core,pyQode/pyqode.core