fixes  #4882 Clear off search value when you close Edit Host Variable window

fixed the issue and committed the code for review, please check it.