goprotobuf: Check GetProperties is passed a struct early on.

This avoids a a dangling lock later on if a bad type is passed in.

LGTM=gmlewis
R=gmlewis
CC=golang-codereviews
https://codereview.appspot.com/152440043
1 file changed