Fix doctests under protobuf 2.4.1.

The exception detail message does not have the message type name in
protobuf 2.4.1 version.
Remove trailing whitespaces.