Improve 'helm-ag-pop-stack'

User can pop stack when `helm-ag` is executed in buffer which
is not related to file.