bufio/Scan: fix error handling at EOF
Fixes issue 5268.

R=golang-dev, dsymonds, bradfitz
CC=golang-dev
https://codereview.appspot.com/8646045