go/parser: don't report name errors if DeclarationErrors is not set

R=adonovan
CC=golang-dev
https://golang.org/cl/12072043
1 file changed