Added support of messages without fields.

This will support messages which just have enums or nested messages or messages
that are completely empty.