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.
Merge pull request #11 from syohex/fix-for-new-helm

Fix for newer helm