Fix for newer helm

Because I got error message like,

Error in post-command-hook (helm--maybe-update-keymap): (error "Nobuffer named *helm-ag*").

So I changed where user input is read.