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

R=adonovan
CC=golang-dev
https://codereview.appspot.com/12072043