Always define #to_proto.

Model#to_proto is always defined now, but raises an exception if no
protobuf message has been configured.
Consolidate error messages.